<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
	
<%
	request.setAttribute("title","商户员工详情");
	request.setAttribute("modelConfigPath", "ser");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
.content{
margin-bottom:28px;
}
</style>
<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
    <div class="detailed-navbar-content panel-body content">
        <t:form commandName="staff" action="/admin/ser/staff/save" method="post" cssClass="form-horizontal">
            <div class="hide">
                <t:hidden path="employeeId"/>
                <t:hidden path="deleteMark"/>
            </div>
            <t:formgroup>
                <t:label path="employeeName" cssClass="col-sm-2" />
                <t:input path="employeeName" colClass="col-sm-4" />
                <t:label path="employeeAccount" cssClass="col-sm-2" />
                <t:input path="employeeAccount" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="employeeCode" cssClass="col-sm-2" />
                <t:input path="employeeCode" colClass="col-sm-4" cssClass="markCode" data-markCodeFor="employeeName"/>
                <t:label path="sex" cssClass="col-sm-2" />
                <t:selectButton path="sex" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="mobile" cssClass="col-sm-2" />
                <t:input path="mobile" colClass="col-sm-4" />
                <t:label path="email" cssClass="col-sm-2" />
                <t:input path="email" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="userMark" cssClass="col-sm-2" />
                <t:input path="userMark" colClass="col-sm-4" />
                 <t:label path="storeId" cssClass="col-sm-2" />
                <t:select2 path="storeId" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="joinUsDate" cssClass="col-sm-2" />
                <t:input path="joinUsDate" colClass="col-sm-4" readonly="true" disabled="true"/>
                <t:label path="jobDuty" cssClass="col-sm-2" />
                <t:select2 path="jobDuty" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="liveAddress" cssClass="col-sm-2" />
                <t:input path="liveAddress" colClass="col-sm-4" />
                <t:label path="idCard" cssClass="col-sm-2" />
                <t:input path="idCard" colClass="col-sm-4" />
            </t:formgroup>
             <t:formgroup>
				<div class="col-sm-12">
					<t:label path="businessId" cssClass="col-sm-2" />
					<t:select2  path="businessId" colClass="col-sm-10"/>
				</div>  
			</t:formgroup> 
             <t:formgroup>
				<div class="col-sm-12">
					<t:label path="roleIds" cssClass="col-sm-2" />
					<t:select2 path="roleIds" colClass="col-sm-10" />
				</div>
			</t:formgroup>
        </t:form>
    </div>
    <div class="navbar-fixed-bottom">
    <t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
	</div>
</t:panel>
      
<script type="text/javascript">

function saveData(){
	
	if (!$("form:first").valid()){
		return;
	}
	$("form:first").submit();
}
  
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>